/*******************************************************************************
 * Copyright (c) 2017-2021, org.smartboot. All rights reserved.
 * project name: smart-socket
 * file name: Provider.java
 * Date: 2021-02-27
 * Author: sandao (zhengjunweimail@163.com)
 *
 ******************************************************************************/

package com.aio.stylesmile;


import com.aio.stylesmile.service.AioQuickServer;
import com.aio.stylesmile.service.AioServer;
import lombok.RequiredArgsConstructor;

import java.io.IOException;

/**
 * @author Stylesmile
 * @version V1.0 , 2024/2/10
 */
@RequiredArgsConstructor
public class Application {

    public static void main(String[] args) throws IOException {
        Long startTime = System.currentTimeMillis();
        AioServer server = new AioServer(8080);
        server.start();
        Long endTime = System.currentTimeMillis();

        System.out.println("服务启动成功：" + (endTime-startTime)+" 毫秒");
    }
}
